package dynamic;

import java.util.ArrayList;
import java.util.List;

public class Client1 {
	public static void main(String[] args) {
		HirInterface hirImpl = new HirImpl();
		HireHouse hireHouse = new HireHouse(hirImpl);
		HirInterface daili=(HirInterface)hireHouse.getObject();
		daili.hire();
		/*List list = new ArrayList<>();
		HireHouse hireHouse = new HireHouse(list);
		List pxoy = (List) hireHouse.getObject();
		pxoy.add(5);
		System.out.println(list.get(0));*/
		System.out.println("tt");
	}
}
